/**
 * @author MIAO
 * Created on 2011-10-6
 * For more information, please visit:ismiao.com
 */
package com.ismiao.designPattern.Factory.FactoryMethod;

import com.ismiao.designPattern.Factory.SimpleFactory.Car;

public class TestCarFactory {
	public static void main(String[] args) {
		try {
			CarFactory factory = new SmallCarFactory();
			Car car = factory.produceCar();
			car.drive();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
